<?PHP
defined('_XR_EXEC') or die();
/**
 * 基础用户判断 
 */
class member_controller extends controller{
	function __construct(){
		parent::__construct();
		# 基础会员判断
		$muser = factory::module('user');
		$muser->loginCheck('member');
	}
	function index__(){
		# 判断用户类别，然后路由到对应的会员首页
		$m_member = factory::module('member');
		$sendtype = $m_member->getusersendtype();
		if($sendtype == '0'){
			url::jump( url::build('user','index') );
		}else if($sendtype == '1'){
			url::jump( url::build('account','index') );
		}else{
			url::msgBox('用户类别错误!',url::build('login','logout'));
		}
	}  
	
	
	 
}
?>